public class FirlatimOrnek1 {

	public void basla(int a, int b) {
		int sonuc = 0;
		try {
			sonuc = a / b;
			System.out.println("sonuc" + sonuc);
		} catch (Exception ex) {
			System.out.println("basla() istisna yakalandi");
			throw ex;
		} finally {
			System.out.println("sonuc : " + sonuc);
		}
	}

	public static void main(String args[]) {
		try {
			FirlatimOrnek1 fo1 = new FirlatimOrnek1();
			fo1.basla(1, 0);
		} catch (Exception ex) {
			System.out.println("main() istisna yakalandi");
		}
	}
}
